package com.sky.financelake.bean.dto;

import android.os.Parcel;
import android.os.Parcelable;

public class StockDto implements Parcelable {

    private Integer id;
    private String tsCode;
    private String symbol;
    private String name;
    private String area;
    private String industry;
    private String fullname;
    private String enname;
    private String market;
    private String exchange;
    private String currType;
    private String listDate;

    public StockDto(Integer id, String tsCode, String symbol, String name, String area, String industry, String fullname, String enname, String market, String exchange, String currType, String listDate) {
        this.id = id;
        this.tsCode = tsCode;
        this.symbol = symbol;
        this.name = name;
        this.area = area;
        this.industry = industry;
        this.fullname = fullname;
        this.enname = enname;
        this.market = market;
        this.exchange = exchange;
        this.currType = currType;
        this.listDate = listDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTsCode() {
        return tsCode;
    }

    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public String getEnname() {
        return enname;
    }

    public void setEnname(String enname) {
        this.enname = enname;
    }

    public String getMarket() {
        return market;
    }

    public void setMarket(String market) {
        this.market = market;
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public String getCurrType() {
        return currType;
    }

    public void setCurrType(String currType) {
        this.currType = currType;
    }

    public String getListDate() {
        return listDate;
    }

    public void setListDate(String listDate) {
        this.listDate = listDate;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeString(this.tsCode);
        dest.writeString(this.symbol);
        dest.writeString(this.name);
        dest.writeString(this.area);
        dest.writeString(this.industry);
        dest.writeString(this.fullname);
        dest.writeString(this.enname);
        dest.writeString(this.market);
        dest.writeString(this.exchange);
        dest.writeString(this.currType);
        dest.writeString(this.listDate);
    }

    public void readFromParcel(Parcel source) {
        this.id = (Integer) source.readValue(Integer.class.getClassLoader());
        this.tsCode = source.readString();
        this.symbol = source.readString();
        this.name = source.readString();
        this.area = source.readString();
        this.industry = source.readString();
        this.fullname = source.readString();
        this.enname = source.readString();
        this.market = source.readString();
        this.exchange = source.readString();
        this.currType = source.readString();
        this.listDate = source.readString();
    }

    public StockDto() {
    }

    protected StockDto(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.tsCode = in.readString();
        this.symbol = in.readString();
        this.name = in.readString();
        this.area = in.readString();
        this.industry = in.readString();
        this.fullname = in.readString();
        this.enname = in.readString();
        this.market = in.readString();
        this.exchange = in.readString();
        this.currType = in.readString();
        this.listDate = in.readString();
    }

    public static final Parcelable.Creator<StockDto> CREATOR = new Parcelable.Creator<StockDto>() {
        @Override
        public StockDto createFromParcel(Parcel source) {
            return new StockDto(source);
        }

        @Override
        public StockDto[] newArray(int size) {
            return new StockDto[size];
        }
    };
}
